import router from '@/router'
import { createStore } from 'vuex'

export default createStore({
  state: {
  },
  getters: {
  },
  mutations: {
  },
  actions: {
    // 安全退出
    logout() {
      window.sessionStorage.clear()
      window.localStorage.clear()
      router.replace({ path: '/login' })
    }
  },
  modules: {
  }
})
